solving logarithmic equations with different bases